package com.beaven.beavenime.view

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.LayoutInflater
import android.widget.FrameLayout
import com.beaven.beavenime.R

class InputView(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : FrameLayout(context, attrs, defStyleAttr) {

    constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)

    constructor(context: Context) : this(context, null)

    companion object {
        private val TAG = InputView::class.java.simpleName

        fun inflateInputView(context: Context): InputView =
            LayoutInflater.from(context).inflate(R.layout.view_input, null) as InputView
    }

    override fun onFinishInflate() {
        super.onFinishInflate()
        Log.i(TAG, "onFinishInflate----")
    }
}